home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / livecd.squashfs / var / db / pkg / sys-devel / make-3.80-r4 / make-3.80-r4.ebuild < prev    next >
Encoding:
Text File  |  2006-04-25  |  1.3 KB  |  52 lines

  1. # Copyright 1999-2006 Gentoo Foundation
  2. # Distributed under the terms of the GNU General Public License v2
  3. # $Header: /var/cvsroot/gentoo-x86/sys-devel/make/make-3.80-r4.ebuild,v 1.10 2006/04/14 23:05:27 vapier Exp $
  4.  
  5. inherit eutils flag-o-matic
  6.  
  7. DESCRIPTION="Standard tool to compile source trees"
  8. HOMEPAGE="http://www.gnu.org/software/make/make.html"
  9. SRC_URI="ftp://ftp.gnu.org/gnu/make/${P}.tar.bz2"
  10.  
  11. LICENSE="GPL-2"
  12. SLOT="0"
  13. KEYWORDS="alpha amd64 arm hppa ia64 m68k mips ppc ppc64 s390 sh sparc x86 ~x86-fbsd"
  14. IUSE="nls static build"
  15.  
  16. DEPEND="nls? ( sys-devel/gettext )"
  17. RDEPEND=""
  18.  
  19. src_unpack() {
  20.     unpack ${A}
  21.     cd "${S}"
  22.     epatch "${FILESDIR}"/${PV}-memory.patch
  23.     epatch "${FILESDIR}"/${P}-parallel-build-failure.patch
  24.     epatch "${FILESDIR}"/${P}-conditional-eval.patch #123317
  25. }
  26.  
  27. src_compile() {
  28.     use static && append-ldflags -static
  29.     econf \
  30.         $(use_enable nls) \
  31.         --program-prefix=g \
  32.         || die
  33.     emake || die
  34. }
  35.  
  36. src_install() {
  37.     if use build ; then
  38.         if [[ ${USERLAND} == "GNU" ]] ; then
  39.             dobin make || die "dobin"
  40.         else
  41.             newbin make gmake || die "newbin failed"
  42.         fi
  43.     else
  44.         make DESTDIR="${D}" install || die "make install failed"
  45.         dodoc AUTHORS ChangeLog NEWS README*
  46.         if [[ ${USERLAND} == "GNU" ]] ; then
  47.             dosym gmake /usr/bin/make
  48.             dosym gmake.1 /usr/share/man/man1/make.1
  49.         fi
  50.     fi
  51. }
  52.